#ifndef CTRL_PROG_H
#define CTRL_PROG_H

#include <QObject>
#include <QThread>
#include <stdio.h>

extern "C"{
    #include <stdio.h>
    #include <sys/types.h>
    #include <fcntl.h>
    #include <sys/stat.h>
    #include <unistd.h>
    #include <pthread.h>
    #include <semaphore.h>
    #include <stdlib.h>
}

class Ctrl_prog : public QObject
{
    Q_OBJECT
public:
    explicit Ctrl_prog(QObject *parent = nullptr);
    int ret = 0;
    int fifo_fd = 0;

    void qt_send(unsigned char *buf);

signals:


};
#endif // CTRL_PROG_H
